<?php
//$_GET['url']原先所在页面的地址
	
	include 'include/config.php';
	
	session_start();
	session_unset();
	session_destroy();
	
	if(!empty($_COOKIE[$site_perfix . 'user_pwd'])) {
		setcookie($site_perfix . 'user_pwd','',time()-3600);
		setcookie($site_perfix . 'user_name','',time()-3600);
	}

	if(empty($_GET['url']))
		header('Location: ./');
	else
		header('Location: ' . stripslashes($_GET['url']));
?>
